import request from '@/utils/request'

// 查询部门统计列表
export function listDeptStatistics(query) {
  return request({
    url: '/system/deptStatistics/list',
    method: 'get',
    params: query
  })
}

// 查询部门统计详细
export function getDeptStatistics(id) {
  return request({
    url: '/system/deptStatistics/' + id,
    method: 'get'
  })
}

// 新增部门统计
export function addDeptStatistics(data) {
  return request({
    url: '/system/deptStatistics',
    method: 'post',
    data: data
  })
}

// 修改部门统计
export function updateDeptStatistics(data) {
  return request({
    url: '/system/deptStatistics',
    method: 'put',
    data: data
  })
}

// 删除部门统计
export function delDeptStatistics(id) {
  return request({
    url: '/system/deptStatistics/' + id,
    method: 'delete'
  })
}

export function getStatisticsDeptOne(query) {
  return request({
    url: '/system/deptStatistics/getStatisticsDeptOne',
    method: 'get',
    params: query
  })
}

export function getStatisticsDeptTwo(query) {
  return request({
    url: '/system/deptStatistics/getStatisticsDeptTwo',
    method: 'get',
    params: query
  })
}

export function getStatisticsDeptThree(query) {
  return request({
    url: '/system/deptStatistics/getStatisticsDeptThree',
    method: 'get',
    params: query
  })
}
